<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>至尊宝</title>
    <style>
        body {
            background: aqua;
        }

        p {
            color: red;
            font-size: 30px;
        }
    </style>
</head>

<body>


<script>

    document.write("<b>")
    var arr = ["曾经", "有一份真挚的爱情摆在我的面前", "我没有珍惜", "直到失去后我才后悔莫及", "人世间最痛苦的事莫过于此", "假如能给我重新来一次的机会的话", "我会对那个女孩说三个字", "减肥吧!"]
    for (var i = 0; i < arr.length; i++) {
        document.write("<p align='center'>" + arr[i] + "</p>")
        alert(arr[i]);//优先执行
    }
    document.write("</b>")

</script>
</body>
</html>